<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
	<title>Vue里面使用animated.css库</title>
	<script type="text/javascript" src="./vue.js"></script>
	<!-- 引入animate.css样式库 -->
	<link rel="stylesheet" type="text/css" href="./animate.css">
</head>
<body>	
	<div id="app">
		<!-- 使用自定义的class name -->
		<transition enter-active-class="animated pulse" leave-active-class="animated swing">
			<div v-if="show">hello world</div>
		</transition>
		<button @click="handleClick">toggle</button>
	</div>
	<script>
		var app = new Vue({
			el : '#app' ,
			data : {
				show : true
			},
			methods : {
				handleClick : function() {
					this.show = !this.show;
				}
			}
		});
	</script>
</body>
</html>